<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="" />
<title>Test_POR_14_01_043_CheckShowSiteEditorMenu</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Test_POR_14_01_043_CheckShowSiteEditorMenu</td></tr>
</thead><tbody>
<tr>
	<td>open</td>
	<td>/portal/public/classic/</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Check show Site Editor menu --</td>
	<td></td>
</tr>
<tr>
	<td>windowMaximize</td>
	<td></td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Sign in</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>username</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>username</td>
	<td>root</td>
</tr>
<tr>
	<td>type</td>
	<td>password</td>
	<td>gtn</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>//div[@id='UIPortalLoginFormAction']/div/div/div/a</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Go to New Staff--</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=New Staff</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>username</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>username</td>
	<td>Test_POR_14_043</td>
</tr>
<tr>
	<td>type</td>
	<td>password</td>
	<td>Test_POR_14_043</td>
</tr>
<tr>
	<td>type</td>
	<td>Confirmpassword</td>
	<td>Test_POR_14_043</td>
</tr>
<tr>
	<td>type</td>
	<td>firstName</td>
	<td>Test_POR_14_043</td>
</tr>
<tr>
	<td>type</td>
	<td>lastName</td>
	<td>Test_POR_14_043</td>
</tr>
<tr>
	<td>type</td>
	<td>email</td>
	<td>Test_POR_14_043@gmail.com</td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Choose User Profile--</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[@id='UIAccountPortlet']/div[1]/div/div/div/div/div/div/div/div/div[2]/div/div/div/div</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[@id='UIAccountPortlet']/div[1]/div/div/div/div/div/div/div/div/div[2]/div/div/div/div</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>user.language</td>
	<td></td>
</tr>
<tr>
	<td>select</td>
	<td>user.language</td>
	<td>label=Vietnamese</td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Save</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Save</td>
	<td></td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>You have registered a new account.</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>You have registered a new account.</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>--Select User and group managent in menu--</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Users and groups management</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Users and groups management</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Choose Group Management --</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>xpath=//div[@id='UIOrganizationPortlet']//div[@class='ManagementIconContainer']/a[@class='GroupButton']</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>xpath=//div[@id='UIOrganizationPortlet']//div[@class='ManagementIconContainer']/a[@class='GroupButton']</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-select group from the tree-</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Platform</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Platform</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Administrators</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Administrators</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//form[@id='UIGroupMembershipForm']/div[2]/div/table/tbody/tr[1]/td[2]/a</td>
	<td></td>
</tr>
<tr>
	<td>verifyText</td>
	<td>//form[@id='UIGroupMembershipForm']/div[2]/div/table/tbody/tr[1]/td[2]/a</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//form[@id='UIGroupMembershipForm']/div[2]/div/table/tbody/tr[1]/td[2]/a</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>Test_POR_14_043</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>Test_POR_14_043</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>--Click add button--</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>xpath=//form[@id='UIUserSelector']//div[@class='UIAction']//a[@class='ActionButton LightBlueStyle']</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>xpath=//form[@id='UIUserSelector']//div[@class='UIAction']//a[@class='ActionButton LightBlueStyle']</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>membership</td>
	<td></td>
</tr>
<tr>
	<td>select</td>
	<td>membership</td>
	<td>label=manager</td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Save</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Save</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>--Page Management--</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Page Management</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Page Management</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>--Add new page--</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>xpath=//div[@id='UIPageBrowser']/div[2]/table/tbody/tr/td/div/div/div/div/a</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>xpath=//div[@id='UIPageBrowser']/div[2]/table/tbody/tr/td/div/div/div/div/a</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>ownerType</td>
	<td></td>
</tr>
<tr>
	<td>select</td>
	<td>ownerType</td>
	<td>label=portal</td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>name</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>name</td>
	<td>Test_POR_14_043</td>
</tr>
<tr>
	<td>type</td>
	<td>title</td>
	<td>Test_POR_14_043</td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Page Layout--</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>xpath=//div[@id='UIPortalApplication']/div[@id='UIMaskWorkspace']/div[@class='MiddleLeftDecorator']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>xpath=//div[@id='UIPortalApplication']/div[@id='UIMaskWorkspace']/div[@class='MiddleLeftDecorator']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Permission Setting--</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>xpath=//div[@id='UIPortalApplication']/div[@id='UIMaskWorkspace']/div[@class='MiddleLeftDecorator']//div[@class='TabsContainer']/div[3]//div[@class='MiddleTab']</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>xpath=//div[@id='UIPortalApplication']/div[@id='UIMaskWorkspace']/div[@class='MiddleLeftDecorator']//div[@class='TabsContainer']/div[3]//div[@class='MiddleTab']</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Save</td>
	<td></td>
</tr>
<tr>
	<td>clickAt</td>
	<td>link=Save</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Add new node--</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Site</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Edit Navigation</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Edit Navigation</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Add Node</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Add Node</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>name</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>name</td>
	<td>Test_POR_14_043</td>
</tr>
<tr>
	<td>type</td>
	<td>label</td>
	<td>Test_POR_14_043</td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Choose Page Selector--</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>xpath=//div[@class='CenterHorizontalTabs']//div[@class='NormalTab']//div[@class='MiddleTab']</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>xpath=//div[@class='CenterHorizontalTabs']//div[@class='NormalTab']//div[@class='MiddleTab']</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Search and Select Page</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Search and Select Page</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>--Select page created from page lists--</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[@id='UIRepeater']/table/tbody/tr[2]/td[5]/div/img</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[@id='UIRepeater']/table/tbody/tr[2]/td[5]/div/img</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Save to finish add new node--</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Save</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Save</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Save to close Navigation Management--</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Save</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Save</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>--Sign out--</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Sign out</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>--Sign In with new accout--</td>
	<td></td>
</tr>
<tr>
	<td>open</td>
	<td>/portal/public/classic/</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Sign in</td>
	<td></td>
</tr>
<tr>
	<td>clickAt</td>
	<td>link=Sign in</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>username</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>username</td>
	<td>Test_POR_14_043</td>
</tr>
<tr>
	<td>type</td>
	<td>password</td>
	<td>Test_POR_14_043</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>xpath=//div[@id='UIPortalLoginFormAction']/div/div/div/a</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>//div[@id='PortalNavigationTopContainer']/div[1]/div/div/div/div/div/div/a</td>
	<td></td>
</tr>
<tr>
	<td>mouseOver</td>
	<td>link=Site Editor</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>--Sign out--</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Đăng xuất</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>--Sign In by root--</td>
	<td></td>
</tr>
<tr>
	<td>open</td>
	<td>/portal/public/classic/</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Sign in</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Sign in</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>username</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>username</td>
	<td>root</td>
</tr>
<tr>
	<td>type</td>
	<td>password</td>
	<td>gtn</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>xpath=//div[@id='UIPortalLoginFormAction']//a</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>- Go to Manage page again--</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Page Management</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Page Management</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Search page created above--</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>searchTerm</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>searchTerm</td>
	<td>Test_POR_14_043</td>
</tr>
<tr>
	<td>select</td>
	<td>searchOption</td>
	<td>label=Title</td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>xpath=//form[@id='UIPageSearch']/div[2]/a</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>xpath=//form[@id='UIPageSearch']/div[2]/a</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>--Delete page--</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>xpath=//img[@title='Delete Page']</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>xpath=//img[@title='Delete Page']</td>
	<td></td>
</tr>
<tr>
	<td>assertConfirmation</td>
	<td>Do you want to delete this page?</td>
	<td></td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>No result found.</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>No result found.</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[5]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[5]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Go to User and Group managent--</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Users and groups management</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Users and groups management</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Choose user management --</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[@id='UIOrganizationPortlet']/div[2]/div[1]/div/div/div/div/div/div/a[1]/div[1]</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[@id='UIOrganizationPortlet']/div[2]/div[1]/div/div/div/div/div/div/a[1]/div[1]</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>searchTerm</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>searchTerm</td>
	<td>Test_POR_14_043</td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>xpath=//form[@id='UISearchForm']/div[2]/a</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>xpath=//form[@id='UISearchForm']/div[2]/a</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>xpath=//img[@alt='DeleteUser']</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>xpath=//img[@alt='DeleteUser']</td>
	<td></td>
</tr>
<tr>
	<td>assertConfirmation</td>
	<td>Are you sure you want to delete Test_POR_14_043 user?</td>
	<td></td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>No result found.</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>No result found.</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[5]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[5]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Go to Site --</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Site</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Edit Navigation</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Edit Navigation</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[@id='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div[8]/div/a</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[@id='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div[8]/div/a</td>
	<td></td>
</tr>
<tr>
	<td>mouseDownRight</td>
	<td>//a[@class='NodeIcon DefaultPageIcon NodeSelected' and @title='Test_POR_14_043']</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Delete Node</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Delete Node</td>
	<td></td>
</tr>
<tr>
	<td>assertConfirmation</td>
	<td>Are you sure you want to delete this node?</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Save</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Save</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Sign out</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Sign out</td>
	<td></td>
</tr>

</tbody></table>
</body>
</html>
